<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/24/024
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>Title</title>
    <style>
        h3{
            margin-bottom: 20px;
            margin-left:250px;
            font-size:18px ;
            color: #485a6a;
        }
        #table01{
            /* margin: 0 auto;*/
            border: 0px #1cc09f solid;
            text-align: center;
            height: 30px;
            line-height:30px;
            color: #485a6a;
            margin: 20px;
        }
        td{
            width: 100px;
        }
        .a{
            width:100px;
        }
        .qq{
            width: 150px;
        }
        #div01{
            border:1px solid #535353;
            width:600px;
        }
        #div02{
            border:1px solid #535353;
            width:600px;
        }
        #dis{
            font-size: 18px;
            color: #485a6a;
        }
    </style>
</head>
<body>
<div id="div01">
    <table id="table01">
        <h3>图书基本信息</h3>
        <tr>
            <td>图书编号</td>
            <td class="qq">图书名称</td>
            <td>图书价格</td>
            <td>数量</td>
            <td>图书类型</td>
        </tr>
        <tr>
            <td>${od.bookid.id}</td>
            <td class="qq">${od.bookid.bname}</td>
            <td>${od.bookprice}</td>
            <td>${od.num}</td>
            <td>${od.bookid.categoryid.typename}</td>
        </tr>
    </table>
</div><br>
<div id="div02">
    <form action="/orders/discuss.action?oid=${od.orderid.id}" method="post" >
    <table id="table01">
        <h3>评价</h3>
        <tr>
            <input type="hidden" name="username.id" value="${od.orderid.uid.id}"/>
            <input type="hidden" name="bookid.id" value="${od.bookid.id}"/>
            <td>评论内容</td>
            <td><textarea name="content" cols="35" rows="5" id="dis"></textarea></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit"  value="提交" onclick="sub()"/></td>
        </tr>
    </table>
    </form>
    <br>
</div>

</body>
<script>
   function sub(){
       if(confirm("确定要提交评论吗?"))
       {
           alert("提交成功");
       }
   }
</script>
</html>
